package com.wechat.service.storage;

import java.io.File;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

import com.wechat.Cons;

/**
 * 聊天附件服务
 * 
 * @author 618lf
 */
@Service("SubjectImageAttachStorageService")
public class SubjectImageAttachStorageService extends SubjectStorageService implements InitializingBean {

	private File path;

	@Override
	public void afterPropertiesSet() throws Exception {
		this.path = new File(this.getStoragePath(), Cons.Attach_Name);
		if (!this.path.exists()) {
			this.path.mkdirs();
		}
	}
}
